﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Orders.aspx.cs" Inherits="ProjectSem3.Admin.WebForm13" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentTabs" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPage" runat="server">
    <div class="grid_9">
        <h1 class="dashboard">
            All orders
        </h1>
    </div>
    <div id="liststockd">
    </div>
    <asp:ListView ID="ListView1" runat="server" 
        onitemupdated="ListView1_ItemUpdated" onitemupdating="ListView1_ItemUpdating" 
        onselectedindexchanged="ListView1_SelectedIndexChanged" 
        onselectedindexchanging="ListView1_SelectedIndexChanging" 
        onitemdatabound="ListView1_ItemDataBound">
        <LayoutTemplate>
            <div class="portlet">
                <div class="portlet-content nopadding">
                    <table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
                        <thead>
                            <tr>
                                <th>
                                    ID
                                </th>
                                <th>
                                    Employee
                                </th>
                                <th>
                                    Customer
                                </th>
                                <th>
                                     Account user
                                </th>

                                <th>
                                    Payment
                                </th>
                                <th>
                                    Dateorder
                                </th>
                                <th>
                                    Total
                                </th>
                                <th>
                                    Status
                                </th>
                                <th>
                                    Options
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <placeholder id="itemPlaceholder" runat="server"></placeholder>
                        </tbody>
                    </table>
                </div>
            </div>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <asp:Label ID="lblOrderID" runat="server" Text='<%# Eval("OrderID") %>' ></asp:Label> 
                </td>
                <td>
                    <asp:DropDownList ID="ddlEmp" runat="server">
                    </asp:DropDownList> <%# Eval("Employee.FullName") %>
                </td>
                <td>
                    <%# Eval("Customer.Name") %>
                </td>
                <td>
                    <%# Eval("Customer.Name") %>
                </td>
                <td>
                    <%# Eval("Payment.name") %>
                </td>
                <td>
                    <%# Eval("DateOrder") %>
                </td>
                <td>
                    <%# Eval("Total") %>
                </td>
                <td>
                    <asp:CheckBox ID="chkOrderStatus" runat="server" Checked='<%# Eval("Status")%>' /> 
                </td>
                <td>
                    <asp:LinkButton ID="lbtnUpdate" CommandName="Update" runat="server">Update</asp:LinkButton>
                    <asp:LinkButton ID="lbtnDetail" CommandName="Select" runat="server">Detail</asp:LinkButton>        
                </td>
            </tr>
        </ItemTemplate>
    </asp:ListView>
</asp:Content>
